//
//  STViewController.m
//  utils
//
//  Created by lvjia on 13-12-30.
//  Copyright (c) 2013年 stlwtr. All rights reserved.
//

#import "STViewController.h"
#import "NSString+STExts.h"
#import "NSData+STExts.h"
#import "MF_Base64Additions.h"

#define Key @"stlwtr"

@interface STViewController ()

@end

@implementation STViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	
    NSString *pwd = @"123456";
    NSString *enPwd = [pwd encryptWithKey:Key];
    
    NSLog(@"%@", enPwd);
    
    NSString *dePwd = [enPwd decryptWithKey:Key];
    
    NSLog(@"%@", dePwd);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
